package com.zr.util;

import com.zr.Paydivide.pojo.UserLoginVo;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpSession;

/**
 * Created by star on 2019/7/4.
 */

@Component
public class LoginSession {

    public static Integer getLoginId(HttpSession session){
        UserLoginVo userLogin = (UserLoginVo) session.getAttribute("loginId");
        Integer loginId = userLogin.getId();
        return loginId;
    }

}
